package com.itheima.string;

public class Demo2 {
    public static void main(String[] args) {
        String a="abc";
        String b="ABC";
        String c="abc";
        //比较字符串的内容是否相等
        boolean flag1=a.equals(b);
        boolean flag2=a.equals(c);
        //比较字符串的大小(不区分大小写)
        boolean flag3=a.equalsIgnoreCase(b);
        System.out.println(flag1);
        System.out.println(flag2);
        System.out.println(flag3);
    }
}
